package com.service.impl;

import com.dao.LoginRepository;
import com.entity.Login;
import com.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginRepository loginRepository;
    @Override
    public Login login(String loginName, String password) {
        return loginRepository.login(loginName,password);
    }
}
